package com.joysuch.wwyt.log.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.joysuch.wwyt.common.entity.UserDataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author zr
 * @since 2021-08-09
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_api_log")
@ApiModel(value = "ApiLog对象", description = "")
public class ApiLog extends UserDataEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = " 请求url")
    private String apiUrl;

    @ApiModelProperty(value = "编码")
    private String bizCode;

    @ApiModelProperty(value = "操作人")
    private Long operator;

    @ApiModelProperty(value = "sn号")
    private String userSn;

    @ApiModelProperty(value = " 请求体")
    private String requestBody;

    @ApiModelProperty(value = "响应")
    private String response;

    @ApiModelProperty(value = " 结果状态")
    private Integer resultStatus;

    @ApiModelProperty(value = " 请求记录号")
    private String requestId;

}
